home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / Networking / AFP C++ / TestSession.h < prev   
Encoding:
C/C++ Source or Header  |  1992-05-01  |  824 b   |  32 lines  |  [TEXT/MPS ]

  1. /************************************************************************
  2.  
  3. Created: Monday, Sept 23, 1991
  4.     TestSession.h
  5.     M.Vierling
  6.  
  7.  
  8.         Copyright Apple Computer, Inc. 1991 - 1992
  9.         All rights reserved
  10.  
  11. ************************************************************************/
  12. #include "AFPSession.h"
  13.  
  14.  
  15. class TestSession : public TAFPSession
  16. {
  17. public:
  18.     void SetPrint( Boolean printflag );
  19.     void SetPrintReply( Boolean printflag );
  20.     void SetFileName( char * theName );
  21.     void CheckErr( OSErr expectedError, int linenumber );
  22.     OSErr ISession( char * zoneName, char * serverName );
  23.  
  24. private:
  25.     Boolean fPrintFlag;
  26.     Boolean fPrintReply;
  27.     char * fSourceFileName;
  28.     void PrintBuffer( Ptr Buffer, int BufferSize );
  29.     void Debug( OSErr theErr, const char * message );
  30.     OSErr DoAFPCommand( XPPParmBlkPtr theParamPtr );
  31. };
  32.